package com.itheima.capsulation;

public class capTest {
    //目标:搞清楚封装的设计思想,合理隐藏合理暴露,学会如何隐藏如何暴露
    public static void main(String[] args) {
        capStudent s1=new capStudent();
        s1.setAge(19);
        System.out.println(s1.getAge());

        s1.setAge(-19);
        System.out.println(s1.getAge());
    }
}
